package org.jeecg.modules.comment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.comment.entity.PhilComment;
import org.jeecg.modules.comment.vo.CommentPublish;

/**
 * @Description: 评论
 * @Author: jeecg-boot
 * @Date:   2020-11-12
 * @Version: V1.0
 */
public interface IPhilCommentService extends IService<PhilComment> {

    /**
     * TODO: 分页查询  根据文章id获取里面被发布了的评论
     *
     *
     * @author ZhangHaoyu
     * @param pageList 分页
    * @param articleId 文章id
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<org.jeecg.modules.comment.vo.CommentPublish>
     */
    Page<CommentPublish> queryListPublishPage(Page<CommentPublish> pageList, String articleId);

    /**
     * TODO: 分页查询  根据用户openid获取它的所有评论
     *
     *
     * @author ZhangHaoyu
     * @param pageList
     * @param openId 用户id
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<org.jeecg.modules.comment.vo.CommentPublish>
     */
    Page<CommentPublish> queryListPageById(Page<CommentPublish> pageList, String openId);

}
